package testAccident;

import static org.junit.Assert.*;

import org.junit.*;

import accident.*;

import player.*;

public class testAccidentController {

	@Before
	public void setUp() throws Exception {
	}

	@After
	public void tearDown() throws Exception {
	}
	
	// Test the method testSubract SEpoint
	@Test
	public void testSubractSEPoint_1(){
		Player p = new Player();
		p.setSEPoint(2);
		
		AccidentController AC = new AccidentController(p);
		AC.subtractSEPoints();
		
		int expected = 0;
		int actual = p.getSEPoint();
		assertEquals(expected, actual);
		
	}
	
	@Test
	public void testSubractSEPoint_2(){
		Player p = new Player();
		p.setSEPoint(10);
		
		AccidentController AC = new AccidentController(p);
		AC.subtractSEPoints();
		
		int expected = 5;
		int actual = p.getSEPoint();
		assertEquals(expected, actual);
		
	}
	
	@Test
	public void testSubractSEPoint_3(){
		Player p = new Player();
		p.setSEPoint(5);
		
		AccidentController AC = new AccidentController(p);
		AC.subtractSEPoints();
		
		int expected = 0;
		int actual = p.getSEPoint();
		assertEquals(expected, actual);
		
	}

}
